<template>
    <p>这是Son组件</p>
    <slot :sonName="name">Son组件的默认值</slot>
</template>


<script>
 export default {
    data() {
        return {
            name:Tom
        }
    }
 }
</script>